package com.concise.appapi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.swing.*;

/**
 * @author jane
 */
@EnableSwagger2
@ServletComponentScan
@SpringBootApplication(scanBasePackages = {"com.concise", "com.initialize"})
@MapperScan("com.initialize.pub")
public class InitializeAppapiApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        JEditorPane response = new JEditorPane();
        response.setContentType("application/json;charset=utf-8");
        SpringApplication.run(InitializeAppapiApplication.class, args);
    }

}
